/* 基础样式 */
body {
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

/* 侧边栏样式 */
.sidebar {
  min-height: 100vh;
  width: 250px;
  background-color: #2c3e50;
  color: white;
  transition: all 0.3s ease;
}
.sidebar.collapsed {
  width: 80px;
}
.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 1rem 1.5rem;
  transition: all 0.2s;
}
.sidebar .nav-link:hover, .sidebar .nav-link.active {
  background-color: #34495e;
  color: white;
}
.sidebar .nav-link i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}
.sidebar.collapsed .nav-text {
  display: none;
}
.sidebar.collapsed .nav-link {
  padding: 1rem;
  text-align: center;
}
.sidebar.collapsed .nav-link i {
  margin-right: 0;
  font-size: 1.2rem;
}

/* 主内容区样式 */
.main-content {
  flex: 1;
  transition: all 0.3s ease;
}
.sidebar.collapsed ~ .main-content {
  margin-left: 80px;
}

/* 顶部导航样式 */
.top-nav {
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 100;
}

/* 数据卡片样式 */
.stat-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 上传按钮样式 */
.upload-btn-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
}
.upload-btn-wrapper input[type=file] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}